define(function(require, exports){
	var $       = require("jquery");
	var util    = require('util');
	var pubjs   = require('pubjs');
	var view    = require('@base/view');
	var utilDSP = require('modules/common');

	var Main = view.container.extend({
		init:function(config){
			config = pubjs.conf(config, {
				'vModel':{
					showPop: this.showPop
				},
			});
			this.Super('init', arguments);
		},
		afterBuild:function(){
			var self = this;
			var c = self.getConfig();
			var el = self.getDOM();
			self.append($([
				'<div class="M-formHead P-advertiserListInfoHead" >',
					'<div class="M-formHead">',
						'<span class="ml10" pub-name="add" pub-mod="@base/common/drop.add" ></span>',
					'</div>',
				'</div>',
			].join('')));
			this.vm.mount();
			var config = {
				'add': {
					'def': LANG('新建溢价规则'),
					'href': '#admin/premium/edit',
					'href_target': '_self',
				}
			};
			self.buildFromTemplate(config);
		}
	});
	exports.main = Main;
});